projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47783c1
)
Convert Options struct into unit struct
author
Kevin Yap
<me@kevinyap.ca>
Sat, 22 Jul 2017 19:57:55 +0000
(12:57 -0700)
committer
Kevin Yap
<me@kevinyap.ca>
Sat, 22 Jul 2017 20:44:47 +0000
(13:44 -0700)
Unit struct support was added in Docopt 0.8.1 via
docopt/docopt.rs#217. Fixes #4174.
Cargo.toml
patch
|
blob
|
history
src/bin/version.rs
patch
|
blob
|
history
diff --git
a/Cargo.toml
b/Cargo.toml
index d7dca9fc21f6142a86ea3acc517cda83736c4ffe..24c6d070c591d68cfccdaa298da41bb36ddc75e5 100644
(file)
--- a/
Cargo.toml
+++ b/
Cargo.toml
@@
-21,7
+21,7
@@
atty = "0.2"
crates-io = { path = "src/crates-io", version = "0.11" }
crossbeam = "0.2"
curl = "0.4.6"
-docopt = "0.8"
+docopt = "0.8
.1
"
env_logger = "0.4"
error-chain = "0.10.0"
filetime = "0.1"
diff --git
a/src/bin/version.rs
b/src/bin/version.rs
index a97c0fc03002d0fa261af9155d85958e8f4c6268..f036def0367a3a394f85072922a71a84e7f328ec 100644
(file)
--- a/
src/bin/version.rs
+++ b/
src/bin/version.rs
@@
-4,7
+4,7
@@
use cargo;
use cargo::util::{CliResult, Config};
#[derive(Deserialize)]
-pub struct Options
{}
+pub struct Options
;
pub const USAGE: &'static str = "
Show version information